package com.ruoyi.linkage.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.linkage.mapper.LinkageActionMapper;
import com.ruoyi.linkage.domain.LinkageAction;
import com.ruoyi.linkage.service.ILinkageActionService;

/**
 * 联动策略-动作Service业务层处理
 * 
 * @author pengjie
 * @date 2023-12-20
 */
@Service
public class LinkageActionServiceImpl implements ILinkageActionService 
{
    @Autowired
    private LinkageActionMapper linkageActionMapper;

    /**
     * 查询联动策略-动作
     * 
     * @param linkageActionId 联动策略-动作主键
     * @return 联动策略-动作
     */
    @Override
    public LinkageAction selectLinkageActionByLinkageActionId(String linkageActionId)
    {
        return linkageActionMapper.selectLinkageActionByLinkageActionId(linkageActionId);
    }

    /**
     * 查询联动策略-动作列表
     * 
     * @param linkageAction 联动策略-动作
     * @return 联动策略-动作
     */
    @Override
    public List<LinkageAction> selectLinkageActionList(LinkageAction linkageAction)
    {
        return linkageActionMapper.selectLinkageActionList(linkageAction);
    }

    /**
     * 新增联动策略-动作
     * 
     * @param linkageAction 联动策略-动作
     * @return 结果
     */
    @Override
    public int insertLinkageAction(LinkageAction linkageAction)
    {
        return linkageActionMapper.insertLinkageAction(linkageAction);
    }

    /**
     * 修改联动策略-动作
     * 
     * @param linkageAction 联动策略-动作
     * @return 结果
     */
    @Override
    public int updateLinkageAction(LinkageAction linkageAction)
    {
        return linkageActionMapper.updateLinkageAction(linkageAction);
    }

    /**
     * 批量删除联动策略-动作
     * 
     * @param linkageActionIds 需要删除的联动策略-动作主键
     * @return 结果
     */
    @Override
    public int deleteLinkageActionByLinkageActionIds(String[] linkageActionIds)
    {
        return linkageActionMapper.deleteLinkageActionByLinkageActionIds(linkageActionIds);
    }

    /**
     * 删除联动策略-动作信息
     * 
     * @param linkageActionId 联动策略-动作主键
     * @return 结果
     */
    @Override
    public int deleteLinkageActionByLinkageActionId(String linkageActionId)
    {
        return linkageActionMapper.deleteLinkageActionByLinkageActionId(linkageActionId);
    }
}
